package com.guigu.controller;

import com.guigu.pojo.DeliveryAddress;
import com.guigu.service.DeliveryAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class DeliveryAddressController {

    @Autowired
    DeliveryAddressService deliveryAddressService;

    @GetMapping("queryByaddrsID.action/{id}")
    public DeliveryAddress queryByaddrsID(@PathVariable Integer id){

        return  deliveryAddressService.queryByaddrsID(id);
    }
}
